home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_19 / PlaceObject2_448_347 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  1011 b   |  48 lines

  1. onClipEvent(enterFrame){
  2.    if(!_root.car.onfloor)
  3.    {
  4.       if(Key.isDown(39))
  5.       {
  6.          _visible = true;
  7.          if(!sound)
  8.          {
  9.             if(_root.sound)
  10.             {
  11.                _root.steamSide.start(0,99999);
  12.                sound = true;
  13.             }
  14.          }
  15.       }
  16.    }
  17.    if(_root.gravityType == "normal")
  18.    {
  19.       if(!Key.isDown(39) or _root.car.onfloor or _root.fake._rotation > 20 or _root.fake._rotation < -20)
  20.       {
  21.          _visible = false;
  22.       }
  23.    }
  24.    if(!Key.isDown(39) or _root.car.onfloor)
  25.    {
  26.       sound = false;
  27.       _root.steamSide.stop();
  28.    }
  29.    if(_root.gravityType == "reverse")
  30.    {
  31.       if(!Key.isDown(39))
  32.       {
  33.          _visible = false;
  34.          sound = false;
  35.          _root.steamSide.stop();
  36.       }
  37.    }
  38.    _X = _root.fake._x - 30;
  39.    if(_root.gravityType == "normal")
  40.    {
  41.       _Y = _root.fake._y - 14;
  42.    }
  43.    if(_root.gravityType == "reverse")
  44.    {
  45.       _Y = _root.fake._y + 10;
  46.    }
  47. }
  48.